// ./mock/message/index.js

import Mock from "mockjs";
const Random = Mock.Random;

// 生成数据消息并赋值给 data 字段
const qualityList = Mock.mock({
  "data|25": [{ //产生 30 条记录 
    "id|+1": 1,
    "scenarioName": "@ctitle",
    "ruleName": "@cname",
    "checkTable": "@csentence",
    "checkRange":  ["@date(yyyy-MM-dd)","@date(yyyy-MM-dd)"],
    "excutionTime": "@datetime('yyyy-MM-dd HH:mm:ss')",
    "accordance|1-2": true,
    "etlPackage": "ACT_GE_PROPERTY",
  }]
})

export function getQualityList() {
  return {
    code: 200,
    data: qualityList.data
  }
}
export function postQualityList(){
  return {
    code: 200,
    data: [],
    message:"添加成功",
    success:true,
  }
}
export function deleteQualityList(){
  return {
    code:200,
    data:[],
    message:'删除成功',
    success:true,
  }
}
